﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace ykglxt
{
    public partial class Form_YPCKDCX : Form
    {
        public Form_YPCKDCX()
        {
            InitializeComponent();
        }

        DataSet ds;
        SqlDataAdapter sda;
        SqlConnection con;

        private void Form_YPCKDCX_Load(object sender, EventArgs e)
        {
            ds = new DataSet();
            con = new SqlConnection(PublicUnit.ConnetionString);
            try
            {
                sda = new SqlDataAdapter("select * from Dic_CRLX", con);
                sda.Fill(ds, "CRLS");
                cklbCKLX.DataSource = ds.Tables["CRLS"];
                cklbCKLX.ValueMember = "BM";
                cklbCKLX.DisplayMember = "MC";
            }
            catch(SqlException ex)
            {
            }
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        private void label6_Click(object sender, EventArgs e)
        {

        }

        private void label7_Click(object sender, EventArgs e)
        {

        }

        private void label8_Click(object sender, EventArgs e)
        {

        }
    }
}
